package cn.mastor.feign;

import cn.mastor.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "user-server",fallback = UserFallback.class)
public interface PayService {
    @GetMapping("/user/{id}")
    User findbyid(@PathVariable("id") Integer id);
}
